﻿@using Sausage.Web.Domain
@using Sausage.Web.DataModel
@model Sausage.Web.DataModel.Instruction
@{
    ViewBag.Title = string.Format("查看指令（{0}）", Model.Title);
    Layout = "~/Views/Shared/MainLayout.cshtml";
}
<h2>@ViewBag.Title</h2>
<br />
<div class="form-box">
    <table class="TableDetail">
        <tr>
            <th>
                指令主题
            </th>
            <td>
                @Html.DisplayFor(model => model.Title)
            </td>
        </tr>
        <tr>
            <th>
                指令类型
            </th>
            <td>
                @Html.Raw(Model.InstructionType == 0 ? "工程指令" : "养护指令")
            </td>
        </tr>
        <tr>
            <th>
                指令内容
            </th>
            <td>
                <div class="JournalContent">
                    @Html.Raw(Model.Content)
                </div>
            </td>
        </tr>
        <tr>
            <th>
                发布人
            </th>
            <td>
                @Html.DisplayFor(model => model.Creater)
            </td>
        </tr>
        <tr>
            <th>
                发布日期
            </th>
            <td>
                @string.Format("{0:yyyy年MM月dd日}", Model.CreateDate)
            </td>
        </tr>
    </table>
</div>
<br />
